System and method of detecting eye closure based on line angles

ABSTRACT

A system and method are provided for monitoring an eye to determine eye closure. The system includes a video imaging camera oriented to generate images of an eye, and a video processor for processing the images. The processor includes an edge detector for detecting edges of the eye in the image, and a line selector for generating lines at any of select angles representative of the detected edges. The processor determines the state of eye closure, such as an open eye or closed eye, based on an angle between two of the lines that select angles. The system may be employed on a vehicle to determine the eye closure state of a driver of the vehicle.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is one of three applications filed on Mar. 10, 2005, all commonly assigned, and the other applications being identified as U.S. Ser. No. 11/077,042, entitled “SYSTEM AND METHOD OF DETERMINING EYE CLOSURE STATE,” and U.S. Ser. No. 11/077,041, entitled “SYSTEM AND METHOD OF DETECTING EYE CLOSURE BASED ON EDGE LINES,” the entire disclosures of which are hereby incorporated herein by reference.

TECHNICAL FIELD

The present invention generally relates to eye monitoring and, more particularly, relates to monitoring an eye, such as one or both eyes of a driver of a vehicle, to determine whether the eye is open or closed.

BACKGROUND OF THE INVENTION

Video imaging systems have been proposed for use in vehicles to monitor a subject person such as the driver and other passengers in the vehicle. Some proposed video imaging systems include one or two cameras focused on the driver of the vehicle to capture images of the driver's face. The video images are processed generally using computer vision and pattern recognition techniques to determine various facial characteristics of the driver including position, orientation, and movement of the driver's eyes, face, and head. Some advanced eye monitoring systems process the captured images to determine eye closure, such as open, half-open (half-closed), and closed states of the eye(s).

By knowing the driver's facial characteristics, vehicle control systems can provide enhanced vehicle functions. For example, a vehicle control system can monitor one or both eyes of the subject driver and determine a condition in which the driver appears to be fatigued or drowsy based on simple statistical analysis of the cumulated results of open or closed state of the eye(s) over time. Standard human factor measures such as PerClos (percentage of eye closure) and AveClos (average of eye closure) could be used to determine the drowsiness state of the driver. For instance, if the AveClos value is determined to be above a certain threshold, the system may initiate countermeasure action(s) to alert the driver of the driver drowsy condition and/or attempt to awaken the driver.

Some proposed vision-based imaging systems that monitor the eye(s) of the driver of a vehicle require infrared (IR) illumination along with visible light filters to control scene brightness levels inside of the vehicle cockpit. One such driver monitoring system produces bright and dark eye conditions that are captured as video images which are processed to determine whether the eye is in the open position or closed position. Such prior known driver eye monitoring systems require specific setup of infrared illuminators on and off the optical camera axis. In addition, these systems are generally expensive, their setup in a vehicle is not practical, and they may be ineffective when used in variable lighting conditions, especially in bright sunny conditions. Further, variations in eyelash contrast and eye iris darkness levels for different subject persons may cause such prior systems to make erroneous eye state discrimination decisions.

It is therefore desirable to provide for a cost affordable and effective method for monitoring an eye and determining the eye closure state. In particular, it is desirable to provide for an eye monitoring system for discerning the open and closed states of the eye(s) of a driver of a vehicle that overcomes drawbacks of prior known proposed eye monitoring approaches.

SUMMARY OF THE INVENTION

In accordance with the teachings of the present invention, a system and method are provided for monitoring an eye and determining eye closure. According to one aspect of the present invention, the system includes a video imaging camera oriented to generate images of an eye. The system further includes a processor for processing the images generated with the video imaging camera. The processor includes an edge detector for detecting edges of the eye in the image and a line selector for selecting a line representative of the detected edges at any of multiple selected angles. The processor determines a state of eye closure based on an angle between two of the lines.

According to another aspect of the present invention, the method includes the steps of arranging a video imaging camera to generate images of an eye, and generating an image of the eye. The method also includes the steps of processing the image to identify edges of the eye in the image, and generating a line representative of the edges at any of multiple selected angles. The method further includes the step of determining an eye closure state based on an angle between two of the lines.

Accordingly, the system and method according to the present invention effectively determines the closure state of the eye, such as an open eye state or closed eye state, with a cost affordable and real-time eye monitoring system. The eye monitoring system is particularly useful in a vehicle for monitoring the eye(s) of a driver of the vehicle and determining if the driver's eye(s) are substantially closed (i.e., closed or almost closed).

These and other features, advantages and objects of the present invention will be further understood and appreciated by those skilled in the art by reference to the following specification, claims and appended drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will now be described, by way of example, with reference to the accompanying drawings, in which:

FIG. 1 is a top view of the cockpit of a vehicle equipped with an eye monitoring system for monitoring the eye(s) of a driver;

FIG. 2 is a block diagram illustrating the eye monitoring system according to the present invention;

FIG. 3 is a block diagram illustrating functions performed by the eye closure recognition routine;

FIG. 4A is a pictorial representation of a video image captured by the camera showing open eyes of the driver;

FIG. 4B is a pictorial representation of a video image captured by the camera showing closed eyes of the driver;

FIG. 5A is a gray-scale exploded view of the edge boundaries of the eye as captured in the image of FIG. 4A;

FIG. 5B is a gray-scale exploded view of the edge boundaries of the eye as captured in the image of FIG. 4B;

FIG. 6A is a schematic diagram illustrating the generation of lines at multiple angles on eye edge boundaries for an open eye state with one hundred percent (100%) confidence;

FIG. 6B is a schematic diagram illustrating the generation of lines at multiple angles on eye edge boundaries for a closed eye with fifty percent (50%) confidence;

FIG. 6C is a schematic diagram illustrating the generation of lines on the eye edge boundaries for a substantially closed eye state with one hundred percent (100%) confidence;

FIGS. 7A-7D illustrate the standard Hough Transformation for straight line detection, illustrating edge pixels plotted in Cartesian coordinates in FIG. 7A, transformed to (a, b) space in FIG. 7B, transformed to polar space in FIG. 7C, and lines mapped in a lookup table in FIG. 7D;

FIG. 8 is a lookup table indicating the presence or absence of a line at each of a plurality of selected angles; and

FIGS. 9A and 9B is a flow diagram illustrating the eye closure recognition routine for determining the eye closure state according to the present invention.

DESCRIPTION OF THE PREFERRED EMBODIMENT

Referring now to FIG. 1, the passenger compartment (cockpit) 12 of a vehicle 10 is generally shown equipped with a driver eye monitoring system 30. The eye monitoring system 30 has a video imaging camera 24 oriented and focused on a subject person (driver) 20 driving the vehicle 10 for capturing and generating video images of the driver 20. The eye monitoring system 30 monitors one or both eyes of the person 20 and determines binary eye closure, e.g., open eye state or closed eye state.

The video imaging camera 24 is shown located generally in front of the driver's seat 16 in the front region of the vehicle cockpit 12. According to one embodiment, video imaging camera 24 is mounted in the instrument cluster. However, the camera 24 may be mounted in other locations onboard the vehicle 10 which allow for acquisition of video images capturing one or both eyes of the driver 20 of the vehicle 10. For example, the video imaging camera 20 may be mounted in the steering assembly 18 or mounted in the dash 14. While a single video imaging camera 24 is shown and described herein, it should be appreciated that two or more video imaging cameras may be employed in the eye monitoring system 30, without departing from the teachings of the present invention.

The video imaging camera 24 is arranged so as to capture successive video image frames of the region where the face of the driver 20 of the vehicle 10 is expected to be located during normal vehicle driving. More particularly, the acquired video image captures the driver's face including one or both eyes 22 and the surrounding ocular features generally found in the area referred to as the ocular adnexa. These features may include one or both eyes 22 and the pupil of the eyes 22, the upper (superior) and lower (inferior) eyelids, and the palpebral fissure space between the eyelids. The acquired video images are then processed to determine characteristics of one or both eyes 22 of the subject person (driver) 20. Each video frame image is processed to determine the eye closure state of one or both eyes 22 of the driver 20, such as open eye position or closed eye position states. By knowing the eye closure state, the eye monitoring system 30 allows for determination of a driver drowsiness condition or inattentive driver condition, among other uses.

The eye monitoring system 20 is also shown employing an optional light illuminator 26 located forward of the driver 20, such as in the dash 14, for illuminating the face of the driver 20. The light illuminator 26 may include one or more infrared (IR) light emitting diodes (LEDs). Either on-axis of off-axis LEDs may be employed (e.g., no specific IR setup is required, in particular). The light illuminator 26 may be located anywhere onboard the vehicle 10 sufficient to supply any necessary light illumination to enable the camera 24 to acquire video images of the driver's eye(s) 22.

Referring to FIG. 2, the eye monitoring system 30 is shown having the video imaging camera 24 and IR light illuminator 26 coupled to a vision processor 32 which, in turn, is coupled to a host processor 42. The video imaging camera 24 may include a CCD/CMOS active-pixel digital image sensor mounted as a chip onto a circuit board. One example of a CMOS active-pixel digital image sensor is Model No. PB-0330, commercially available from Photobit, which has a resolution of 640 H×480 V. It should be appreciated that other imaging cameras may be employed.

The vision (video) processor 32 is shown having a frame grabber 38 for receiving the video output frames generated by the video imaging camera 24. Vision processor 32 also includes a digital signal processor (DSP) 34 for processing the acquired video image frames. The digital signal processor 34 may include a fixed point processor, such as Model No. C6416, commercially available from Texas Instruments. A fixed point processor can perform fixed point trigonometric functions and/or use lookup tables. Alternately, the digital signal processor may include a floating point processor.

The vision processor 32 further includes memory 36, such as random access memory (RAM), read-only memory (ROM), and other memory, as should be readily apparent to those skilled in the art. The vision processor 32 is configured to perform one or more routines for controlling activation of the IR light illuminator 26, controlling the video imaging camera 24, processing the acquired video images to determine eye closure state, and applying the processed information to vehicle control systems, such as host processor 42.

The vision processor 32 may provide camera control functions via control RS-232 logic 46 which allows for control of the video imaging camera 24 via camera control signals. Control of the video imaging camera 24 may include automatic adjustment of the pointing orientation of the video imaging camera 24. For example, the video imaging camera 24 may be repositioned to focus on an identifiable feature, and may scan a region in search of an identifiable feature, including the driver's face and, more particularly, one or both eyes 22. Camera control may also include adjustment of focus and magnification as may be necessary to track an identifiable feature. Thus, the eye monitoring system 30 may automatically locate and track one or more identifiable features, such as one or both of the driver's eyes 22.

The eye monitoring system 30 includes an eye closure recognition routine 100 stored in memory 36 and processed by the digital signal processor 34. Routine 100 may be implemented as a software program as should be evident to those in the art. The eye closure recognition routine 100 processes the captured video images of the eye 22 to determine the eye closure state (e.g., eye open position or eye closed position states).

Referring to FIG. 3, the eye closure recognition routine 100 performs various functions including eye detection function 50 which detects one or both eyes, and eye tracking function 52 which tracks one or both detected eyes in the captured video images. Routine 100 also includes an edge detection function 54 for detecting edge boundaries of the eye in the captured image. Routine 100 performs a Hough Transformation function 56 to transform plotted edge pixel points from Cartesian coordinates to polar coordinates (space) to enable the generation of lines on the edge boundaries of the monitored eye 22. Routine 100 further includes a line selection function 58 for generating and selecting lines that represent the edge boundaries of the eye 22 at each of select angles. The lines may be selected from clustered groupings and may be present at any of a plurality of the predetermined select angles.

Eye closure routine 100 performs an eye open or closed discrimination function 64. The eye open or closed discrimination function 64 determines the state of eye closure. The eye closure determination is achieved by monitoring the edge boundaries of the monitored eye 22, particularly the selected lines, and determining if there is a line present or absent at each of all select angles and, if lines are present at multiple select angles, further processes the largest angle between any two of the lines to determine whether the eye 22 is open or substantially closed. If the largest angle between any of the two lines at the select angles exceeds an open eye threshold angle, then the eye 22 is determined to be in the open state. The eye open or closed determination may be made at different confidence levels, such as one hundred percent (100%) confidence or a reduced confidence level of fifty percent (50%) confidence. The determined eye closure state may be employed in any of a number of applications in function block 62.

Referring back to FIG. 2, the determined eye closure state is made available to the host processor 42 via input/output (I/O) 40. The host processor 42 may include any of a number of control devices that may employ the determined eye closure state for use in any of a number of applications. For example, the determined eye closure state may be used in a driver drowsy application or other application(s) to initiate countermeasures 44. Examples of countermeasures 44 may include activating an audible warning, initiating a haptic seat, increasing vehicle following distance, initiating cold air conditioning (A/C), and/or activating peppermint olfactory stimulation.

Referring to FIGS. 4A and 4B, representative video images generated with video imaging camera 24 capturing the driver's face 20 are shown, according to one example. One video image frame showing the eyes 22 in the open state is shown in FIG. 4A. Another video image frame showing the eyes 22 in the closed state is shown in FIG. 4B.

The eye closure recognition routine 100 detects an eye 22 and tracks a region shown bounded by an eye tracking window 70 generally centered about the eye 22. The eye tracking window 70 may include a rectangular sub-image having a size of 88×40 pixels, according to one example. The eye tracking window 70 may be of any shape and is of sufficient size to capture a region greater than the upper and lower edge boundaries of the monitored eye 22.

The monitored eye 22 is shown within eye tracking window 70 having an upper eyelid 23 generally defining the upper edge boundary of eye 22 and a lower eyelid 25 generally defining the lower edge boundary of eye 22. The eye closure recognition routine 100 generates a plurality of lines on the edge boundary that may exist at multiple select angles, and further determines the eye closure state based on the largest angle between any two lines at two of the select angles.

The eye closure recognition routine 100 generates a gray-scale video image within eye tracking window 70, detects the boundary edges 80 of the eye 22, generates a plurality of lines representing the edges 80 at multiple select angles, may select permanent lines from any close groupings (clusters), and determines eye closure based on the largest angle between any two lines present at the select angles. The edge boundaries 80 of the eye 22 are shown in FIGS. 5A and 5B as a gray-scale image in which the pixels at the boundary edges 80 exhibit a characteristic shading (e.g., dark gray contrasted with white, or vice versa) that identifies the boundary edges 80 of the eye 22. The edge map (set of edge pixels) is computed using a standard edge detector (e.g., Sobel edge detector). The eye closure recognition routine 100 plots the pixels exhibiting the characteristic gray-scale boundary edges 80 in Cartesian coordinates and transforms the Cartesian coordinates to a polar space via a Hough Transformation.

From the Hough Transformation, any number of lines may be extracted and, from the lines, the most permanent lines of each of any clustered groupings may be selected according to one embodiment. Examples of a plurality of lines generally defining the boundary edges 80 of the eye 22 at select angles φ are illustrated in FIGS. 6A through 6C for an open eye state with one hundred percent (100%) confidence, a closed eye state with fifty percent (50%) confidence, and a closed eye state with one hundred percent (100%) confidence, respectively. At several select angles φ, lines are generated at the boundary edges 80.

In the example shown in FIG. 6A, the selected lines include lines 72, 74 and 76 generated on upper and lower boundary edges of eye 22. Line 72 is shown extending along a portion of the lower eyelid boundary as a horizontal linear line at angle φ=zero degrees (0°). Line 74 is shown extending along an upper eyelid boundary at an angle φ=thirty degrees (30°). Line 76 is also shown extending along an upper eyelid boundary at an angle φ=forty-five degrees (45°).

It should be appreciated that lines within a certain distance of Y pixels, such as Y=eight pixels and within an angular deviation of ±X, such as X=seven degrees (7°), may be grouped into a single cluster to generate a single line representative of the group at a select angle φ. The representative line for each group may then be chosen to arrive at the individual lines as shown in FIG. 6A. In one embodiment, the most dense (strongest) line identifying the boundary at a selected angle φ is chosen. According to another embodiment, an average line may be selected as the representative line for each clustered grouping at each angle φ.

The present invention monitors lines at select angles. According to one example, as shown and described herein, the select angles may include φ=minus fifteen degrees (−15°), zero degrees (0°), fifteen degrees (15°), thirty degrees (30°), and forty-five degrees (45°). The select angles are illustrated in the examples shown in FIGS. 6A through 6C.

When the eye 22 is in the open position state with one hundred percent (100%) confidence as shown in FIG. 6A, lines 72, 74 and 76 are present at angles φ=zero degrees (0°), thirty degrees (30°) and forty -five degrees (45°), respectively. When the eye 22 is in the closed position state with a one hundred percent (100%) confidence as shown in FIG. 6C, a single line 92 is present at angle φ=zero degrees (0°). It should be appreciated that no other lines are present at the select angles φ when the eye 22 is determined to be closed in the example shown in FIG. 6C. Referring to FIG. 6B, lines 82 and 84 are shown oriented at angles φ=zero degrees (0°) and fifteen degrees (15°), respectively when the eye 22 is determined to be closed with fifty percent (50%) confidence.

The eye closure state is determined based on the number of total lines at the select angles, the largest acute angle between any two lines, and angle thresholds, as described herein. The level of confidence as to whether the eye state is open or closed is also determined. For example, the eye may be determined to be one hundred percent (100%) open or closed or to a lesser degree of confidence may be determined to be opened or closed with a lesser fifty percent (50%) confidence level, according to one embodiment. If zero lines or one line total exists at all of the select angles, then the eye is determined to be closed with a one hundred percent (100%) confidence. According to the example shown, if the largest acute angle between any two lines is fifteen degrees (15°) or less, the eye is determined to be closed with a fifty percent (50%) confidence. If the largest acute angle between any two lines is at least thirty degrees (30°) and less than forty-five degrees (45°), then the eye is determined to be open with a fifty percent (50%) confidence. If the largest acute angle between any two lines is forty-five degrees (45°) or greater, then the eye is determined to be open with a one hundred percent (100%) confidence level. Accordingly, the eye may be determined to be open or closed at a one hundred percent (100%) confidence or lesser fifty percent (50%) confidence level, depending upon the number of lines and angles that form acute angles between any of the two lines at the select angles.

The present invention determines and monitors the presence or absence of a line at each of a plurality of select angles. According to the example illustrated herein, the select angles may include 0=minus fifteen degrees (−15°), zero degrees (0°), fifteen degrees (15°), thirty degrees (30°), and forty-five degrees (45°). According to another example, the select angles φ may be set equal to zero degrees (0°), twenty degrees (20°), forty degrees (40°), sixty degrees (60°), and minus ten degrees (−10°). According to a further example, seven equally spaced angles may be chosen ranging from minus forty-five degrees (−45°) to plus forty-five degrees (+45°) for the select angles φ. Any of a number of select angles may be employed, depending upon the resolution of the processed image and the processing capability. It should also be appreciated that the select angles φ may be chosen to include lines at edge boundaries within ±X degrees, in which X is an acceptable angular deviation from the select angle φ. X may include seven degrees (7°) according to one embodiment.

The use of the Hough Transformation to generate linear (straight) lines and to enable selection of representative lines is illustrated in FIGS. 7A-7D. The Hough Transformation transforms two-dimensional images with lines into a domain of possible linear parameters, where each line in the image provides a peak position at the corresponding line parameters. In the Hough Transformation, the angle θ=90°−φ. The Hough Transformation is generally known in the art of image processing and computer vision for detecting shapes and, in particular, straight lines. While a Hough Transformation is described herein in connection with the present invention, it should be appreciated that other transformations such as a Radon Transformation, or Least-square type methods for line fitting may be employed to generate the lines.

In FIG. 7A, the video image pixels that identify an edge boundary 80 of the eye 22 are plotted in a Cartesian coordinate as a function of the X- and Y-axes. By way of the Hough Transformation, the Cartesian coordinates are converted to an (a, b) space as seen FIG. 7B and a polar space as shown in FIG. 7C. The polar space plots lines of interest (L) as a function of r, c and θ. The distance ρ from a reference point is generated as a function of r, c and θ according to the following equation: ρ=r Cos θ+c Sin θ. Angle θ is defined as 90°−φ. Accordingly, a line of interest L, is defined by ρ and θ.

A lookup table is then created as seen in FIG. 7D. Each cell of the lookup table represents the number of edge boundary pixels of a line (ρ, θ). θ ranges from plus ninety degrees (+90°) to minus ninety degrees (−90°), and each cell includes a dimension size of Δ_(θ). ρ ranges from 0 to 2n, and has a cell dimension size of Δ_(ρ). Parameter n is the largest dimension of the image (i.e., width or height). The Hough Transformation provides a polar space which defines the desired increments of ρ and θ, Δ_(ρ) and Δ_(θ), and quantifies this space accordingly.

For every point of interest (typically points found by edge detector that exceeds some threshold value), values for r and c are plugged into the line equation and, for each value of θ in the quantified space, the distance ρ is solved for. For each (ρ, θ) pair, the rc pair in the corresponding block in the quantified space is recorded which constitutes a hit for a particular block. The number of hits in each block corresponds to the number of pixels on the line as defined by the values of ρ and θ in that block. A minimum threshold is chosen as one-third of the tracking window 70 width (e.g., in the example given the width is equal to eighty-eight (88) pixels so the threshold is about twenty-nine (29) pixels) is used to select a set of lines from the lookup table.

From the Hough Transformation, representative lines are chosen by extracting the coordinates of distance ρ at multiple angles θ that meet the minimum threshold requirement. The desired increments of ρ and θ, Δ_(ρ) and Δ_(θ), are defined in the space as quantified. The lines are sorted based on the number of adjacent lines and a quantity of lines within a predetermined range. Each set of multiple lines within the sorted array may be fused together to form a single representative line if they meet the threshold criteria for adjacency and quantity. The lines may be selected at multiple angles θ=select values±X degrees, which X is an acceptable angular deviation from the angle θ to allow for the inclusion of close lines. X may include seven degrees (7°), according to one embodiment. The multiple lines represent the edge boundaries of the eye at various angle θ.

Referring to FIG. 8, a lookup table 94 is provided according to one example for storing the presence or absence of a line at each of select angles φ. Table 94 includes eye state 96, confidence level 97, and line entry blocks 98. In the table 94 shown, the presence of a line at a particular select angle φ is represented in blocks 98 by numeral one (1). The absence of a line at a particular select angle is represented in blocks 98 by numeral zero (0). Accordingly, the presence or absence of a line at each of the select angles φ=minus fifteen degrees (−15°), zero degrees (0°), fifteen degrees (15°), thirty degrees (30°), forty-five degrees (45°) is entered into the lookup table. The eye closure recognition routine processes the entries 98 in the lookup table 94 to determine the state of eye closure.

To discriminate the eye closure states, including open eye and closed eye positions, the presence or absence of lines at each of the plurality of select angles φ are evaluated. If zero lines or one line exists at any angle φ, then the eye is determined to be in the closed position with one hundred percent (100%) confidence. If the largest acute angle between any two lines is fifteen degrees (15°) or less, then the eye is determined to be in the closed position with a fifty percent (50%) confidence. If the largest acute angle between any two lines is at least thirty degrees (30°) and less than forty-five degrees (45°), then the eye is determined to be in the open position state with fifty percent (50%) confidence. If the largest acute angle between any two lines is forty-five degrees (45°) or greater, then the eye is determined to be in the open position state with one hundred percent (100%) confidence.

The eye closure recognition routine 100 is shown in detail in FIGS. 9A and 9B. Routine 100 begins at step 102 and proceeds to step 104 to acquire the next video image frame generated by the video imaging camera. Routine 100 begins to process the acquired video image frame including detecting and tracking the subject eye in step 106. The eye detection and tracking functions may employ the use of known image pattern recognition techniques.

Proceeding to step 108, routine 100 extracts a patch as the eye tracking window centered over the subject eye. Routine 100 then performs edge detection in step 110 to determine the edge boundaries of the monitored eye, including the edges of the upper and lower eyelids. The edge detection may include the use of known edge detection software, such as a Sobel edge detector.

Eye closure recognition routine 100 performs a histogram equalization on a gray-scale edge map in step 112 to provide gray-scale shading for the individual video image pixels. Certain pixels will exhibit a characteristic gray-scale image to identify the edge boundaries in the video image. Eye closure recognition routine 100 converts the equalized gray-scale map to a binary edge map in step 114. Next, in step 116, routine 100 zeros out pixels on the corners of the extracted patch to remove edges from eyebrow and background clutter.

Routine 100 then builds an edge pixel density matrix using a Hough Transformation for lines at multiple select angles θ in step 118. Step 118 includes step 120 which converts floating point angles to a Q15 fixed point number system. It should be appreciated that a fixed point number system may be processed with a fixed point digital signal processor. However, it should also be appreciated that other processors, such as a floating point processor, may be employed.

Step 118 of building the edge pixel matrix using the Hough Transformation also includes step 122 which runs a Q15 fixed point function to find Sin and Cos values for angles θ of interest. A Q15 function is just one example of a fixed point function. It should be appreciated that other processing functions may be employed. Step 118 includes step 124 which employs integer math to find ρ for each edge pixel for all θ values. Further, as part of step 118, corresponding pairs of ρ and θ positions are then incremented in step 126.

Following step 118, eye closure recognition routine 100 finds the line with the maximum density for each angle in step 128. The lines with the maximum pixel density below a minimum threshold are then discarded in step 130.

Following step 130, eye recognition closure routine 100 enters into a lookup table the presence or absence of a line at each select angle φ. This may be achieved by entering into the lookup table a numerical one (1) or numerical zero (0) indicative of presence or absence of a line at each select angle. In decision step 134, routine 100 determines if zero total lines or one line exists at all of the select angles φ. If zero lines or one line exists at all select angles, routine 100 proceeds to step 136 to determine that the eye is closed with a one hundred percent (100%) confidence, before returning in step 150. In step 138, routine 100 determines if the largest acute angle between any two lines is fifteen degrees (15°) and, if so, determines the eye is closed with fifty percent (50%) confidence, in step 140 before returning step 150. In step 142, routine 100 determines if the largest acute angle between any two lines is thirty degrees (30°) and, if so, determines the eye is in the open position state with fifty percent (50%) confidence in step 144, before returning in step 150. In step 146, routine 100 determines if the largest acute angle between any two lines is forty-five degrees (45°) or greater, and, if so, determines the eye is in the open position state with one hundred percent (100%) confidence in step 148, before returning in step 150.

Accordingly, the eye recognition closure routine 100 of the present invention advantageously determines the eye open or closed position with a confidence level by comparing the acute angle between two or more lines at select angles. For those lines exhibiting a large acute angle therebetween which exceeds an open eye threshold equals forty-five degrees (45°), according to one example, the eye is determined to be open at a one hundred percent (100%) confidence level. If the acute angle exceeds a lesser eye open threshold, less than the open eye threshold, then the eye is determined to be open with a lesser fifty percent (50%) confidence level.

Similarly, eye closure recognition routine 100 determines if the eye is closed whenever there is only one or zero lines present at all of the select angles. If there are two or more lines at different select angles and the largest acute angle between any two lines is fifteen degrees (15°) or less, then the eye is determined to be closed with a fifty (50%) confidence level.

The eye monitoring system 30 employs the eye closure recognition routine 100 to discriminate the closure state of a monitored subject eye 22 by comparing the presence or absence of multiple lines at various select angles φ and determining an amount of eye closure based on the lines and the acute angle therebetween at the selected angles φ. The selected lines are substantially linear and substantially parallel to each other, according to the embodiments shown and described herein. However, it is conceivable that the eye monitoring system 30 may generate non-linear lines and determine eye closure state based on the non-linear lines, without departing from the teachings of the present invention. It should be appreciated that the lines may extend at angles slightly offset from one another and still be considered at the same angle.

Accordingly, the eye monitoring system 30 of the present invention advantageously captures and processes images of the eye 22 to determine eye closure. The eye monitoring system 30 is economical and easy to manufacture and deploy in a vehicle 10. It should be appreciated that the eye monitoring system 30 may be employed in various applications employed both on and off a vehicle.

It will be understood by those who practice the invention and those skilled in the art, that various modifications and improvements may be made to the invention without departing from the spirit of the disclosed concept. The scope of protection afforded is to be determined by the claims and by the breadth of interpretation allowed by law. 

1. A system for monitoring an eye and determining eye closure, said system comprising: a video imaging camera oriented to generate images of an eye; and a video processor for processing the images generated with the video imaging camera, said video processor comprising an edge detector for detecting edges of the eye in the image and a line selector for selecting a line representative of the detected edges at any of multiple selected angles, said processor determining a state of eye closure based on an angle between two of the lines at two of the selected angles.
 2. The system as defined in claim 1, wherein each said line is substantially linear.
 3. The system as defined in claim 1, wherein said processor determines the state of eye closure is open when the angle between the two lines exceeds an open threshold angle.
 4. The system as defined in claim 1, wherein said processor determines the eye is closed when the angle between the two lines is less than a closed threshold angle.
 5. The system as defined in claim 1, wherein said processor further determines the eye is closed when only one or zero total lines are present among all of the selected angles.
 6. The system as defined in claim 1, wherein said processor determines the eye is open at a reduced confidence when the angle is greater than a reduced threshold angle that is less than the open threshold angle.
 7. The system as defined in claim 1, wherein said processor performs a Hough Transformation to transform each line from Cartesian coordinates to polar space and further determines the line at each of the multiple selected angles.
 8. The system as defined in claim 1, wherein said detected edges comprise a gray-scale representation of pixels imaging the eye.
 9. The system as defined in claim 1, wherein the system is employed in a vehicle for monitoring an eye of a driver of the vehicle.
 10. A vehicle eye monitoring system for monitoring an eye of a person in a vehicle and determining eye closure, said system comprising: a video imaging camera located on a vehicle and oriented to generate images of an eye of a person in the vehicle; and a video processor for processing the images generated with the video imaging camera, said video processor comprising an edge detector for detecting edges of the eye in the image and a line selector for selecting a line representative of the detected edges at any of multiple angles, said processor determining a state of eye closure based on an angle between two of the lines at two of the selected angles.
 11. A method of monitoring an eye and determining eye closure, said method comprising the steps of: arranging a video imaging camera to generate images of an eye; generating an image of the eye; processing the image to identify edges of the eye in the image; generating a line representative of an edge at any of multiple selected angles; and determining an eye closure state based on an angle between two of the lines at two of the selected angles.
 12. The method as defined in claim 11, wherein the step of generating a line comprises generating a line that is substantially linear.
 13. The method as defined in claim 11, wherein the step of determining an eye closure state comprises determining the eye is open when the angle exceeds an open eye threshold.
 14. The method as defined in claim 11, further comprising the step of determining the eye is closed when the angle is less than a closed threshold angle.
 15. The method as defined in claim 11, further comprising the step of determining the eye is closed when only one or zero total lines are present among all of the selected angles.
 16. The method as defined in claim 11, further comprising the step of determining the eye is open at a reduced confidence (50%) when the angle is greater than a reduced threshold angle that is less than the open threshold angle.
 17. The method as defined in claim 11, wherein the step of generating a lines comprises transforming said line from Cartesian coordinates to polar space with a Hough Transformation and determining the line at each of any of the multiple selected angles.
 18. The method as defined in claim 11, wherein said step of arranging a video imaging camera comprises arranging the video imaging camera in a vehicle to monitor the eye of a driver of the vehicle.
 19. The method as defined in claim 11, further comprising the step of generating a gray-scale representation of pixels imaging the eye. 